﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="category.ascx.cs" Inherits="usercontrol_category" %>
<script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/main.js" type="text/javascript"></script>
    <style>

    #screenshot{
	    position:absolute;
	    border:1px solid #ccc;
	    background:#333;
	    padding:5px;
	    display:none;
	    color:#fff;
	    z-index:999999;
	    }


    </style>
    
<table style="width:100%;">
    <tr>
        <td colspan="7">
            <div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span><asp:Label ID="lbTitle" runat="server"
                    Text=""></asp:Label></div>
        </td>
    </tr>
    <tr>
        <td colspan="7">
            <asp:Label ID="lbnodata" runat="server" Text=""></asp:Label>
        </td>
    </tr>
    <tr>
        <td colspan="7">
            <asp:DataList ID="dlSach" runat="server" RepeatColumns="3" 
                RepeatDirection="Horizontal">
                     <ItemTemplate>
                        <div class="new_prod_box">
                        <a href='<%#"details.aspx?IDSach="+Eval("IdSach") %>'><%#Eval("TenSach") %></a>
                        <div class="new_prod_bg">
                        <span class="new_icon"><%#Eval("IconNew") %></span>
                        <a href='<%#"details.aspx?IDSach="+Eval("IdSach") %>' class="screenshot" rel='<%#"images/"+Eval("Hinh") %>'><img src='<%#"images/"+Eval("Hinh") %>'  alt="" title="" class="thumb" border="0" width="100" height="100" /></a>
                        </div>           
                    </div>
                     </ItemTemplate>
            </asp:DataList>
        </td>
        
    </tr>
    <tr>
        <td colspan="3">
            <table>
                <tr>
                    <td><asp:LinkButton ID="lbtnFirst" Text="<<" runat="server" 
                            CausesValidation="false" onclick="lbtnFirst_Click"></asp:LinkButton></td>
                    <td><asp:LinkButton ID="lbtnPrevious" Text="<" runat="server" 
                            CausesValidation="false" onclick="lbtnPrevious_Click"></asp:LinkButton></td>
                    <td>
                        <asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" 
                            AlternatingItemStyle-BorderStyle="NotSet" onitemcommand="DataList1_ItemCommand" 
                            onitemdatabound="DataList1_ItemDataBound">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                    CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                        </ItemTemplate>
                        </asp:DataList>
                    </td>
                    <td><asp:LinkButton ID="lbtnNext" Text=">" runat="server" CausesValidation="false" 
                            onclick="lbtnNext_Click"></asp:LinkButton></td>
                    <td><asp:LinkButton ID="lbtnLast" Text=">>" runat="server" CausesValidation="false" 
                            onclick="lbtnLast_Click"></asp:LinkButton></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
   
</table>
